﻿using System;

namespace OnePiece.Core.Utility
{
    public static class Constants
    {
        /// <summary>
        /// Return values from the app.config or web.config
        /// </summary>
        /// <param name="key">App Settings key</param>
        /// <returns>Configuration values</returns>
        public static string GetConfig(string key)
        {            
            return System.Configuration.ConfigurationManager.AppSettings[key];
        }

        public static string ThemePath
        {
            get
            {
                //TODO: Get from the webconfig
                return "~/App_Themes/Green";
            }

        }

        public static string ImagePath
        {
            get
            {
                return ThemePath + "/images";
            }
        }

        public static string AjaxLoaderImagePath
        {
            get
            {                
                return  ThemePath + "/images/ajax-loader.gif";
            }

        }

        public static DateTime Today
        {
            get { return DateTime.Today; }
        }

        public static string PageName
        {
            get { return "PageName"; }
        }

        
      
    }
}